<?php

use Illuminate\Support\Facades\Route;

// 首页
Route::get('/')
    ->uses('GlobalController@showIndex')
    ->name('index');

// 发送短信验证码
Route::match(['get', 'post'], 'send-sms-code/{mobile}')
    ->uses('GlobalController@sendSmsCode')
    ->middleware(['throttle:1,1'])
    ->name('send-sms-code');